package com.wooribank.android.tablet;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

public class AccountBox extends LinearLayout {

	private Account account;

	public AccountBox(Context context, Account account) {
		super(context);
		this.account = account;
		LayoutInflater inflater = LayoutInflater.from(getContext());
		inflater.inflate(R.layout.account_box, this);
		((TextView) findViewById(R.id.nameTextView)).setText(account.getName());
		((TextView) findViewById(R.id.numberTextView)).setText(account.getNumber());
		((TextView) findViewById(R.id.nicknameTextView)).setText(account.getNickname());
		((TextView) findViewById(R.id.moneyTextView)).setText("" + account.getMoney());

		int color = account.getColor();
	}

	public Account getAccount() {
		return account;
	}

}
